//
//  TrendViewController.swift
//  CXSwiftDemo
//
//  Created by 潮汐 on 2023/11/28.
//  Copyright © 2023 小潮汐. All rights reserved.
//

import UIKit

class TrendViewController: CXBaseViewController {

    lazy var button = UIButton(type: .custom)
    override func viewDidLoad() {
        super.viewDidLoad()

        //设置导航栏标题
        self.titleNavLabel.text = "动态"
        self.backNavButton.isHidden = true
        
        // Do any additional setup after loading the view.
        button.frame = CGRect(x: 30, y: 100, width: 200, height: 40)
        button.setTitle("功能", for: .normal)
        button.setTitleColor(.red, for: .normal)
        button.addTarget(self, action: #selector(actionButton), for: .touchUpInside)
        view.addSubview(button)
        
    }
    
    @objc func actionButton(){
        let VC = CXToolsEntController()
        self.navigationController?.pushViewController(VC, animated: true)
    }
    
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destination.
        // Pass the selected object to the new view controller.
    }
    */

}
